#!/usr/bin/python3
# -*- coding: utf-8 -*-#
# -------------------------------------------------------------------------------
# Name:         urls
# Description:  
# Author:       
# Date:         2019/7/16
# -------------------------------------------------------------------------------
from django.urls import path

from ClothingStore.settings import DEBUG
from . import views


app_name = 'users'


urlpatterns = [
    path('login/', views.login, name='login'),  # 用户登录
    path('register/', views.register, name='register'),  # 用户注册
    path('user_index/', views.user_index, name='user_index'),  # 用户中心
    path('address/', views.address, name='address'),  # 地址管理
    path('verification_code.png', views.verification_code, name='verification_code'),  # 验证码
    path('checkCode/', views.check_code, name='checkCode'),  # 校验验证码
    path('logout/', views.logout, name='logout'),  # 退出登录
    path('area/', views.area, name='area')  # 三级联动查询
]


if DEBUG:
    urlpatterns.append(path('autologin/', views.auto_login, name='auto_login'))  # 自动登录

